import React from 'react';
import useSubscribeMsg from './useSubscribeMsg';

const withSubscribeMsg = (Component, config) => props => {
    const { subContent } = useSubscribeMsg(config);
    return <Component subContent={subContent} {...props} />;
};

export default withSubscribeMsg;
